package com.kgc.api.goods;

import com.kgc.bean.HotWord;

import java.util.List;

/**
 * Created on 2021/6/22.
 * Author: lzy
 * Description:
 */
public interface HotWordApi {

    /**
    *@ClassName: HotWordApi
    *@Description 根据 hotword判断是否存在
    *@Date 2021/6/22
    */
    HotWord querySelectHotWord(String hotword);

    /**
    *@ClassName: HotWordApi
    *@Description 添加热词到数据库
    *@Author lzy
    *@Date 2021/6/22
    */
    boolean queryAddNewHotWord(HotWord hotWord);

    /**
    *@ClassName: HotWordApi
    *@Description 更新热词搜索数量到数据
    *@Author lzy
    *@Date 2021/6/22
    */

    boolean queryUpdateCordToHotWord(HotWord hotWord);

    /**
    *@ClassName: HotWordApi
    *@Description 查询热词库，查询热词量最多的前五个；
    *@Author lzy
    *@Date 2021/6/22
    */

    List<HotWord> selectHotWord5();





}
